<?php

/**
*	评论伪删除 (逻辑删除) 
*
*/

//包含公共文件
include '../../common/common.php';

//接收get传值,用于确定版块
// var_dump($_POST);

$arrReply1 =  $_POST['arrReply1'];
$strReply1 = join(',' , $arrReply1);

// var_dump($strReply1);

//判断选项是否为空
if (!$arrReply1) {
	exit('选项不得为空 <a href="'  . $_SERVER['HTTP_REFERER'] .'">返回上一页</a>');
}


//修改数据库
$updateReply1 = myUpdate($link , DB_TABLE_DETAIL , ['isdel' => 1] , " id  in  ($strReply1)");
// var_dump($updateReply1);

//判断结果集
if (!$updateReply1) {

	exit('回收评论失败 <a href="'  . $_SERVER['HTTP_REFERER'] .'">返回上一页</a>');
}

//跳转页面
echo '评论已放入回收站';
header('refresh:1;url=' . $_SERVER['HTTP_REFERER']);